JFun: Functional Programming in Java

نویسندگان

  • Tekin Meriçli
  • Peng Bi
چکیده

A function is a good way of specifying a computation since in each computation the result depends in a certain way on the parameters, and using functions makes a program modular and well-structured. In order to reduce the development effort and future programming costs caused by bugs and maintenance problems, writing well-structured and modular programs has become crucial as software becomes more and more complex. Since modularity is the key to successful programming, functional languages are vitally important to the real world. In this paper we try to show that writing programs in an object-oriented language by using functional programming concepts is possible. As examples, list and tree manipulation functions, numerical integration and differentiation, and alpha-beta heuristic which is an algorithm from Artificial Intelligence used in game-playing programs are implemented in Java programming language using functional programming concepts.

برای دانلود رایگان متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

منابع مشابه

The Potential of Tropical Agro-Industrial by-Products as a Functional Feed for Poultry

Following the ban of synthetic antibiotics as antimicrobial agents and growth promoters, poultry nutritionists are now trying to find antibiotic substitutes. Agro-industrial by-products are abundant in tropical countries and have been used as the alternatives to conventional feedstuffs in poultry rations. These by-products are also known to contain several bioactive compounds such as oligosacch...

متن کامل

Automatic Construction of Java Programs from Functional Program Specifications

This paper presents a novel approach to construct Java programs automatically from the input functional program specifications on natural numbers from the constructive proofs of the input specifications using an inductive theorem prover called Poiti′n. The construction of a Java program from the input functional program specification involves two phases. The theorem prover is used to construct ...

متن کامل

Feature-Oriented Functional Reactive Programming

This report describes an implementation of a functional reactive programming extension to Java implemented using the feature-oriented Jakarta Tool Suite. I explore the connection between feature-oriented programming and domain specific languages by demonstrating how this domain-specific language is both implemented and used in a feature-oriented system.

متن کامل

Bachelor Degree Project Comparing functional to imperative Java

Java has recently become a multi paradigm language, with the functional paradigm now made available alongside the traditional, imperative, one. Programming in the functional paradigm may be considered complicated or hard to read, and there may be concerns that the code it produces may become hard to maintain because of complexity or readability issues. On the other hand, proponents of the funct...

متن کامل

A Concurrent Implementation of Curry in Java

Curry is a multi-paradigm declarative language aiming to amalgamate functional, logic, and concurrent programming paradigms. Curry combines in a seamless way features from functional programming and (concurrent) logic programming. Curry's operational semantics is based on the combination of lazy reduction of expressions together with a possibly non-deterministic binding of free variables occurr...

متن کامل

ذخیره در منابع من


  با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید

عنوان ژورنال:

دوره   شماره 

صفحات  -

تاریخ انتشار 2006